<?php

session_start();

include_once "src/controller/blmanagement/ResourceManagement.php";
include_once "src/model/Resource.php";
include_once "src/misc/ClientReponseGenerator.php";

try {

    $resourceId = $_POST["resourceId"];

    if (ResourceManagement::removeByResourceId(($resourceId))) {
        echo ClientReponseGenerator::simpleJsonResponse(1, "", "");
    } else {
        throw new Exception();
    }

} catch (Exception $e) {
    echo ClientReponseGenerator::simpleJsonResponse(0, "DeleteResourceException", "");
}

?>
